/*
 * Created on 08/10/2009
 *
 */
package com.stefanini.pe.bbva.mbl.smanager;

import java.io.Serializable;

/**
 * @author Administrador
 *
 */
// Nested Types    
public class ItemSession implements Serializable,Comparable
{
    // Fields
    private Object objContent;
    private String strKey;

    // Methods
    public int compareTo(Object anotherItemSession) throws ClassCastException {
        if (!(anotherItemSession instanceof ItemSession))
          throw new ClassCastException("An ItemSession object expected.");
        String anotherItemKey = ((ItemSession) anotherItemSession).getKey();  
        return this.getKey().compareTo(anotherItemKey);    
      }


    // Properties
    	public Object getContent()
        {
            return this.objContent;
        }
        public void setContent(Object value)
        {
            this.objContent = value;
        }
    

    
        public String getKey()
        {
            return this.strKey;
        }
        public void setKey(String value)
        {
            this.strKey = value;
        }
        
       
    
}

